<%
//用户
var user = shiro.getUser();
var title  = '食药局申请-食品安全技术人员登记';
layout("/inc/layout.html",{
title:title,
keywords:title,
description:title,
style:'user.css'
}){
%>
    <!--项目发布-->
    <section class="container">
    <div class="row mt15">
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>食药申请-食品安全技术人员登记</strong>
            </div>
            <div class="panel-body">
                <!--项目状态-->

                <form class="form-horizontal col-sm-offset-1 col-sm-9" id="saveTechnicianForm" method="post" action="/fooddrugApply/saveTechnician">
                  <input type="hidden" name="id" id="id" value="${id!}">
                  <input type="hidden" name="applyId" id="applyId" value="${applyId!}">
                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="name" name="name" value="${name!}" placeholder="姓名"
                                   required="required"> 
                                    <b class="text text-danger" id="name-error"></b>
                        </div>
                    </div>
                    
                     <div class="form-group">
                        <label class="col-sm-2 control-label">性别：</label>
                        <div class="col-sm-10">
                                <input type="radio" value="1" name="sex" id="sex1" ${sex==1? "checked"} ${sex==null? "checked"}>&nbsp;<font style="font-weight: bolder;">男</font>&nbsp;
                                <input type="radio" value="2" name="sex" id="sex2" ${sex==2? "checked"}>&nbsp;<font style="font-weight: bolder;">女</font>&nbsp;
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label">民族</label>
                        <div class="col-sm-10" id="distpicker">
                            <select class="form-control" name="nation" id="nation">
                              <%for(nation in nationMap){%>
                             <option value="${nation.key}">${nation.value}</option>
                             <%}%>
                            </select>
                             <b class="text text-danger" id="layout-error"></b>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="companyName" class="col-sm-2 control-label">户籍登记地址</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="householdAddress" name="householdAddress" value="${householdAddress!}" placeholder="户籍登记地址"
                                   required="required"> 
                                    <b class="text text-danger" id="householdAddress-error"></b>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="companyName" class="col-sm-2 control-label">身份证号码</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="cardNumber" name="cardNumber" value="${cardNumber!}" placeholder="证件号码"
                                   required="required"> 
                                    <b class="text text-danger" id="cardNumber-error"></b>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="companyName" class="col-sm-2 control-label">手机号码</label>
                        <div class="col-sm-10">               
                            <input type="text" class="form-control" id="phone" name="phone" value="${phone!}" placeholder="手机号码"
                                   required="required"> 
                                    <b class="text text-danger" id="phone-error"></b>
                        </div>
                    </div>
                </form>
            </div>
             <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                    <button type="button" class="btn btn-warning btn-lg btn-block" id="cancelTechnician">&nbsp;取消&nbsp;</button>
                    </div>
                    <div class="mt5 mb5 block col-sm-3">
                     <button type="button" class="btn btn-danger btn-lg btn-block" id="submitTechnician">&nbsp;提交&nbsp;</button>
                    </div>
                </div>
            </div>
        </div>
</div>
    </section>
<% } %>
<script>
    require(['modules/fooddrug_technician'], function (fooddrugTechnician) {
    	fooddrugTechnician.info();
    });
</script>
</body>
</html>